home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 7598 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: xs4all.nl!not-for-mail
  2. From: yrozijn@xs4all.nl (Yvon Rozijn)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: ColorWheel
  5. Date: 18 Apr 1996 19:11:27 GMT
  6. Organization: XS4ALL, networking for the masses
  7. Message-ID: <4l644v$3jr@news.xs4all.nl>
  8. References: <4l0hl0$8lj@fizban.solace.mh.se>
  9. NNTP-Posting-Host: ztm04-20.dial.xs4all.nl
  10. X-Newsreader: TIN [AMIGA 1.3 950726BETA PL0]
  11.  
  12. Magnus Holmgren (cmh@lls.se) wrote:
  13.  
  14. : I'm trying to use the colorwheel (and the gradientslider) in a program, but
  15. : I don't know how to use these gadgets properly.
  16.  
  17. Use the ICA_TARGET,ICTARGET_IDCMP tag on both gadgets and listen for
  18. IDCMP_IDCMPUPDATE messages. msg->IAddress points to the gadget.
  19.  
  20. : Also, must I use GetAttr to get the new color values in a IDCMP_MOUSEMOVE
  21. : message?
  22.  
  23. Yes, assuming you have coupled them by using the WHEEL_GradientSlider tag,
  24. you can GetAttr() WHEEL_HSB from the colorwheel gadget. Don't try to get
  25. WHEEL_RGB because that won't work properly. Use ConvertHSBToRGB() afterwards
  26. if you need RGB values.
  27.  
  28. -- 
  29.                  ___                                   _
  30.    Q          : |  #|           :  \|/  http://www. : [_]_
  31.  -<_>- Yvon   : | ==| yrozijn@  : >WWW< xs4all.nl/  : === ) Amiga
  32.   / \  Rozijn : `---' xs4all.nl :  /|\  ~yrozijn    :     O  4000
  33.